﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HWmanagementDB;

namespace HWmanagementServer
{
    public class FileMgr
    {
        public static string getFileName(int fileId)
        {
            try
            {
                string ret;
                using (Repository repo = new Repository())
                {
                    ret = repo.FileRepository.GetByID(fileId).NAME;
                }
                return ret;
            }
            catch
            {
                throw new Exception("Error while handling request!");
            }
        }

    }
}
